package com.jf.thread;

public class Test03 {
    public static void main(String[] args) {
//        TicketWindow t1 = new TicketWindow();
//        TicketWindow t2 = new TicketWindow();
//        TicketWindow t3 = new TicketWindow();
//        TicketWindow t4 = new TicketWindow();
//
//        t1.start();
//        t2.start();
//        t3.start();
//        t4.start();


        TW tw = new TW();

        Thread tw1 = new Thread(tw,"w1");
        Thread tw2 = new Thread(tw,"w2");
        Thread tw3 = new Thread(tw,"w3");
        Thread tw4 = new Thread(tw,"w4");

        tw1.start();
        tw2.start();
        tw3.start();
        tw4.start();
    }
}
